package com.joysuch.wwyt.audit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.joysuch.wwyt.audit.entity.AuditLogRecord;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;


@Repository
public interface AuditLogRecordMapper extends BaseMapper<AuditLogRecord> {

    List<Long> getIdByCreateTime(@Param("endTime") Date endTime, @Param("limit") boolean limit);

    int copyDataToHisByIds(@Param("ids") List<Long> ids);

    void deleteByIds(@Param("ids") List<Long> ids);

}
